//睡眠总时间评分标准
let total_standards_child = [{
    begin: 9,
    end: 11,
    score: 100
  },
  {
    begin: 8,
    end: 9,
    score: 90
  },
  {
    begin: 7,
    end: 8,
    score: 80
  },
  {
    begin: 11,
    end: 12,
    score: 80
  },
  {
    begin: 5,
    end: 7,
    score: 60
  },
  {
    begin: 12,
    end: 24,
    score: 60
  },
  {
    begin: 0,
    end: 5,
    score: 30
  },
];

let total_standards_young = [{
    begin: 8,
    end: 10,
    score: 100
  },
  {
    begin: 10,
    end: 11,
    score: 80
  },
  {
    begin: 7,
    end: 8,
    score: 80
  },
  {
    begin: 5,
    end: 7,
    score: 60
  },
  {
    begin: 11,
    end: 24,
    score: 60
  },
  {
    begin: 0,
    end: 5,
    score: 30
  },
];

let total_standards_adult = [{
    begin: 7,
    end: 9,
    score: 100
  },
  {
    begin: 9,
    end: 10,
    score: 90
  },
  {
    begin: 10,
    end: 11,
    score: 80
  },
  {
    begin: 6,
    end: 7,
    score: 80
  },
  {
    begin: 4,
    end: 6,
    score: 60
  },
  {
    begin: 11,
    end: 24,
    score: 60
  },
  {
    begin: 0,
    end: 4,
    score: 30
  },
];
//入睡时间评分标准
let start_standards_child = [{
    begin: 20,
    end: 22,
    score: 100
  },
  {
    begin: 19,
    end: 20,
    score: 80
  },
  {
    begin: 22,
    end: 23,
    score: 80
  },
  {
    begin: 9,
    end: 19,
    score: 60
  },
  {
    begin: 23,
    end: 24,
    score: 60
  },
  {
    begin: 0,
    end: 9,
    score: 30
  },
];

let start_standards_young = [{
    begin: 21,
    end: 23,
    score: 100
  },
  {
    begin: 20,
    end: 21,
    score: 80
  },
  {
    begin: 23,
    end: 24,
    score: 80
  },
  {
    begin: 9,
    end: 20,
    score: 60
  },
  {
    begin: 0,
    end: 1,
    score: 60
  },
  {
    begin: 1,
    end: 9,
    score: 30
  },
];

let start_standards_adult = [{
    begin: 21,
    end: 23,
    score: 100
  },
  {
    begin: 20,
    end: 21,
    score: 80
  },
  {
    begin: 23,
    end: 24,
    score: 80
  },
  {
    begin: 9,
    end: 20,
    score: 60
  },
  {
    begin: 0,
    end: 1,
    score: 60
  },
  {
    begin: 1,
    end: 9,
    score: 30
  },
];

//清醒次数评分标准
let wake_standards = [{
    begin: 0,
    end: 2,
    score: 100
  },
  {
    begin: 3,
    end: 4,
    score: 80
  },
  {
    begin: 4,
    end: 5,
    score: 60
  },
  {
    begin: 6,
    end: 50,
    score: 30
  },
];

//深睡比列评分标准
let deep_standards_child = [{
    begin: 25,
    end: 45,
    score: 100
  },
  {
    begin: 20,
    end: 25,
    score: 80
  },
  {
    begin: 45,
    end: 100,
    score: 80
  },
  {
    begin: 10,
    end: 20,
    score: 60
  },
  {
    begin: 0,
    end: 10,
    score: 30
  },
];

let deep_standards_young = [{
    begin: 25,
    end: 40,
    score: 100
  },
  {
    begin: 20,
    end: 25,
    score: 80
  },
  {
    begin: 40,
    end: 100,
    score: 80
  },
  {
    begin: 10,
    end: 20,
    score: 60
  },
  {
    begin: 0,
    end: 10,
    score: 30
  },
];

let deep_standards_adult = [{
    begin: 20,
    end: 35,
    score: 100
  },
  {
    begin: 35,
    end: 100,
    score: 80
  },
  {
    begin: 10,
    end: 20,
    score: 60
  },
  {
    begin: 0,
    end: 10,
    score: 30
  },
];

//心率评分标准
let heartRate_standards = [{
    begin: 60,
    end: 100,
    score: 100
  },
  {
    begin: 50,
    end: 60,
    score: 80
  },
  {
    begin: 100,
    end: 120,
    score: 80
  },
  {
    begin: 0,
    end: 50,
    score: 60
  },
  {
    begin: 120,
    end: 300,
    score: 60
  }
]

//步数评分标准
let step_standards_child = [
  {
    begin: 5000,
    end: 8000,
    score: 100
  },
  {
    begin: 4000,
    end: 5000,
    score: 80
  },
  {
    begin: 8000,
    end: 10000,
    score: 80
  },
  {
    begin: 2000,
    end: 4000,
    score: 60
  },
  {
    begin: 10000,
    end: 20000,
    score: 60
  },
  {
    begin: 0,
    end: 2000,
    score: 630
  },
  {
    begin: 20000,
    end: 100000,
    score: 30
  }
]

let step_standards_young = [
  {
    begin: 6000,
    end: 9000,
    score: 100
  },
  {
    begin: 4000,
    end: 6000,
    score: 80
  },
  {
    begin: 9000,
    end: 12000,
    score: 80
  },
  {
    begin: 2000,
    end: 4000,
    score: 60
  },
  {
    begin: 12000,
    end: 20000,
    score: 60
  },
  {
    begin: 0,
    end: 2000,
    score: 630
  },
  {
    begin: 20000,
    end: 100000,
    score: 30
  }
]

let step_standards_adult = [
  {
    begin: 8000,
    end: 10000,
    score: 100
  },
  {
    begin: 5000,
    end: 8000,
    score: 80
  },
  {
    begin: 10000,
    end: 12000,
    score: 80
  },
  {
    begin: 2000,
    end: 5000,
    score: 60
  },
  {
    begin: 12000,
    end: 20000,
    score: 60
  },
  {
    begin: 0,
    end: 2000,
    score: 630
  },
  {
    begin: 20000,
    end: 100000,
    score: 30
  }
]


module.exports = {
  total_standards_child,
  total_standards_young,
  total_standards_adult,
  start_standards_child,
  start_standards_young,
  start_standards_adult,
  wake_standards,
  deep_standards_child,
  deep_standards_young,
  deep_standards_adult,
  heartRate_standards,
  step_standards_child,
  step_standards_young,
  step_standards_adult
}